import { axios } from '@/utils/request'

const api = {
  list: '/delivery-rules/list',
  save: '/delivery-rules/save',
  status: '/delivery-rules/set-status'
}

export default api

export function List(params) {
  return axios({
    url: api.list,
    method: 'get',
    params
  })
}

export function Save(data) {
  return axios({
    url: api.save,
    method: 'post',
    data
  })
}

export function Status(params) {
  return axios({
    url: api.status,
    method: 'get',
    params
  })
}
